package com.jeespring.concurrency.sigleton;

public class SigletonExample7 {
    private SigletonExample7(){

    }

    public static SigletonExample7 getInstance(){
        return Sigleton.INSTANCE.getInstance();
    }

    private enum Sigleton{
        INSTANCE;

        private SigletonExample7 sigleton;

        Sigleton(){
            sigleton = new SigletonExample7();
        }

        public SigletonExample7 getInstance(){
            return sigleton;
        }
    }
}
